package ooday01;

import java.net.StandardSocketOptions;

public class StudentTest {
    public static void main(String[] args) {
        //创建学生对象
        Student zg = new Student();
        //访问成员变量
        zg.name = "张光";
        zg.age = 22;
        zg.className = "JSD2404";
        zg.stuId = "01";

        zg.say();
        zg.playWith("zpy");
        zg.study();

        Student ll = new Student();
        //未赋值，String默认值为null，int默认值为0
        ll.study();
        ll.say();
        ll.playWith(zg.name);

        Student ww = new Student();

        ww.name = "王五";
        ww.age = 22;
        ww.className = "JSD2404";
        ww.stuId = "02";

        Student ls = new Student("李四", 21, "JSD2404", "03");
        ls.study();
        ls.say();
        ls.playWith("老师");

        ConsDemo c1 = new ConsDemo("i7-13", "4090", "Kingston", "west", 01);
        c1.show();

        ConsDemo c2 = new ConsDemo("i5-12600KF", "4060Ti", "4000MHz", "RC20", 5718);
        c2.show();

    }
}
